package com.open.capacity.finance.dto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 科目余额表
 */
@Data
public class KmyebDto {

    public String kjkmCode;
    public String kjkmName;
    public String kjkm;

    public Integer isMx;

    public Integer yefx;
    public Integer yefx1;
    public Integer yefx2;
    public Integer yefx3;

    public String yefx1Str;

    public String getYefx1Str() {
        if (yefx1 != null) {
            switch (yefx1) {
                case 0:
                    return "平";
                case 1:
                    return "借";
                case 2:
                    return "贷";
                default:
                    return "借";
            }
        } else {
            return "";
        }
    }

    public String yefx2Str;

    public String getYefx2Str() {
        if (yefx2 != null) {
            switch (yefx2) {
                case 0:
                    return "平";
                case 1:
                    return "借";
                case 2:
                    return "贷";
                default:
                    return "借";
            }
        } else {
            return "";
        }
    }

    public String yefx3Str;

    public String getYefx3Str() {
        if (yefx3 != null) {
            switch (yefx3) {
                case 0:
                    return "平";
                case 1:
                    return "借";
                case 2:
                    return "贷";
                default:
                    return "借";
            }
        } else {
            return "";
        }
    }

    public BigDecimal ncye;
    public BigDecimal qcye;
    public BigDecimal jfs;
    public BigDecimal dfs;
    public BigDecimal jlj;
    public BigDecimal dlj;
    public BigDecimal ye;

}
